package cn.funeralobjects.common.service.entity;

import cn.funeralobjects.common.model.entity.BaseEntity;
import cn.funeralobjects.util.NumberUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 基础的软删除实体，指定了 0 为正常存在标记
 *
 * @author FuneralObjects
 * Create date: 2020/4/15 2:21 PM
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public abstract class BaseDelSaltEntity extends BaseEntity {

    @Override
    public Integer existsDelSalt() {
        return (int) NumberUtils.ZERO;
    }
}
